package com.linkallcloud.core.face.message.request;

import com.linkallcloud.core.dto.Sid;

public class LoginFaceRequest extends FaceRequest {
    private static final long serialVersionUID = -1980382022809242376L;

    private Sid user;
    private Sid company;

    public LoginFaceRequest() {
        super();
    }

    public LoginFaceRequest(Sid user) {
        super();
        this.user = user;
    }

    public LoginFaceRequest(Sid user, Sid company) {
        super();
        this.user = user;
        this.company = company;
    }

    public LoginFaceRequest(String token, String versn) {
        super(token, versn);
    }

    public LoginFaceRequest(String token) {
        super(token);
    }

    public Sid getUser() {
        return user;
    }

    public void setUser(Sid user) {
        this.user = user;
    }

    public Long userId() {
        return user == null ? null : user.getId();
    }

    public Sid getCompany() {
        return company;
    }

    public void setCompany(Sid company) {
        this.company = company;
    }

    public Long companyId() {
        return company == null ? null : company.getId();
    }

}
